package com.surge;

import org.springframework.beans.factory.annotation.Autowired;

public class BaseService<T>{
	
	// 自动匹配类型
	@Autowired
	protected BaseRepository<T> repository;
	
	public void add(){
		System.out.println("add......");
		System.out.println(repository);
	}
	
}
